package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.GreFile;
import cn.topevery.garden.entity.query.GreFileQuery;
import cn.topevery.garden.entity.vo.GreFileVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 绿地/行道树/古树名木  附件表
 *
 * @author code-generate
 * @date 2022-01-05
 */
public interface GreFileDao extends BaseDao<GreFile> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<GreFileVO> listPage(GreFileQuery query);

    GreFile getEntityByColumn(String key,String value);

    List<GreFile> getListByMainId(Integer mainId, Integer dataType);

    List<GreFile> getListByMainRecordId(Integer mainId,Integer dataType);

    void deleteByMainId(Integer id,String userId,Integer type);

    void insert(GreFile greFile);

    void insertList(List<GreFile> list);

    void deleteByMainId(Integer mainId, Integer userId);

    void deleteByMainIds(List<String> ids, Integer userId);

}
